package com.huika.renrench.control.my.merchant;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.huika.renrench.R;
import com.huika.renrench.control.common.base.BaseAct;
import com.huika.renrench.view.TitleBarHelper;

public class MerchantManageActivity extends BaseAct {

	private TextView tvProgram;
	private TextView tvShop;
	private TextView tvTransfer;

	@Override
	public void setRootView() {
		setContentView(R.layout.activity_merchant_manager);
	}

	@Override
	protected void initWidget() {
		TitleBarHelper titleBarHelper = new TitleBarHelper(this, -1, -1, R.string.title_merchant);
		titleBarHelper.setLeftMsg("我的");
		tvProgram = (TextView) findViewById(R.id.tv_myprogram_amma);
		tvShop = (TextView) findViewById(R.id.tv_myshop_amma);
		tvTransfer = (TextView) findViewById(R.id.tv_transfer_amma);
		tvProgram.setOnClickListener(this);
		tvShop.setOnClickListener(this);
		tvTransfer.setOnClickListener(this);
	}

	@Override
	public void widgetClick(View v) {
		switch (v.getId()) {
		case R.id.tv_myprogram_amma:
			Intent intent = new Intent(MerchantManageActivity.this, MyProgramActivity.class);
			intent.putExtra("backStr", "返回");
			showActivity(this, intent);
			break;
		case R.id.tv_myshop_amma:
			showActivity(MerchantManageActivity.this, MyShopListActivity.class);
			break;
		case R.id.tv_transfer_amma:
			showActivity(MerchantManageActivity.this, MyShopActivity.class);
			break;

		default:
			break;
		}
	}

}
